#include <stdio.h>
/*
条件编译

*/
// 设定外设

/*

*/

#define project_1

#ifdef project_1

    #define LED
    #define beep
    #define oleds

#elif  project_2

    #define LED
    #define oled

#endif



/*
#define LED
#define beep
#define oled
#define spi
*/

int main(int argc, char const *argv[])
{
    // 功能1 注释
#if 0
    printf("张三\n");
#endif
#ifdef LED
    printf("我是 LED 模块\n");
#endif

#ifdef beep
    printf("我是 蜂鸣器 模块\n");
#endif

#ifdef oled
    printf("我是 OLED 模块\n");
#endif

#ifdef spi
    printf("我是 spi 模块\n");
#endif
    
    return 0;
}



